package com.sanben.demand.data.dto;

import com.sanben.valid.interfaces.First;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author cyh
 * @description: 需求咨询表实体类
 * @since 2020-08-11
 */

@Data
@Accessors(chain = true)
@ApiModel(value = "DemandDto对象", description = "需求咨询表")
public class DemandDto implements Serializable {

    @NotNull(message = "用户ID不能退为空", groups = First.class)
    private Integer id;

    @NotBlank(message = "标题不能为null")
    @ApiModelProperty(value = "标题")
    private String title;

    @NotBlank(message = "内容不能为null")
    @ApiModelProperty(value = "内容")
    private String content;
}
